package com.up360.rapidcalc.aerolite.dao
{
    import com.up360.rapidcalc.aerolite.model.Configuration;

    /**
     * @author Tunie
     * @date   May 2, 2013
     * configuration数据是由
     */
    public class ConfigurationDao
    {
        private var _configu:Configuration;
        
        public function ConfigurationDao()
        {
        }
        
        public function set configu(value:Configuration):void
        {
            _configu = value;
        }
        
        /**
         * 由一个object转换成Configuration对象 
         * @param data
         * @return Configuration对象
         * 
         */
        public function newInstance(data:Object):Configuration
        {
            var confi:Configuration=new Configuration();
            confi.type=data.type;
            confi.config=data.config;
            confi.getTop=data.getTop;
            confi.userId=data.userId;
            confi.contCpId=data.contCpId;
//            confi.confDataURL=data.confDataURL;
            confi.subjectDataURL=data.subjectDataURL;
            confi.saveResultURL=data.saveResultURL;
            return confi;
        }

    }
}